package com.pkk.penguin.frame.know.springmvc.entity;

import java.io.Serializable;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by peikunkun on 2018/1/20 0020.
 */
public class UserRegister implements Serializable {

  private String username;

  private String password;

  /*上传文件类型设置为MultipartFile上传时，会自动绑定*/
  private MultipartFile image;


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public MultipartFile getImage() {
    return image;
  }

  public void setImage(MultipartFile image) {
    this.image = image;
  }

  @Override
  public String toString() {
    return "UserRegister{" +
        "username='" + username + '\'' +
        ", password='" + password + '\'' +
        ", image=" + image +
        '}';
  }
}
